/**
 * @title: AreaEntity
 * @projectName JeePlus
 * @description: TODO
 * @author Administrator
 * @date 2019/10/3111:16
 */

import javax.ejb.MessageDriven;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import org.hibernate.annotations.GenericGenerator;
import org.jboss.logging.Message;

@Entity
@Table(name = "AREA")
//@NamedQuery(name="findAllUser",query="SELECT u FROM AREA u")
public class AreaEntity {
    /**
     * 版本号
     */
    //private static final long serialVersionUID = 3335029792239045842L;

    /* This code was generated by TableGo tools, mark 1 begin. */

    /**
     * arId
     */
    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    @Column(name = "AR_ID", unique = true, nullable = false, length = 10)
    private Integer arId;

    /**
     * arNo
     */
    @Column(name = "AR_NO", nullable = false, length = 30)

    private String arNo;

    /**
     * name
     */
    @Column(name = "NAME", nullable = false, length = 40)
    private String name;

    /**
     * status
     */
    @Column(name = "STATUS", nullable = false, length = 1)
    private Integer status;

    /**
     * infoTermYear
     */
    @Column(name = "INFO_TERM_YEAR", nullable = true, length = 4)
    private Integer infoTermYear;

    /**
     * infoTermNo
     */
    @Column(name = "INFO_TERM_NO", nullable = true, length = 6)
    private Integer infoTermNo;

    /* This code was generated by TableGo tools, mark 1 end. */

    /* This code was generated by TableGo tools, mark 2 begin. */

    /**
     * 获取arId
     *
     * @return arId
     */
    public Integer getArId() {
        return this.arId;
    }

    /**
     * 设置arId
     *
     * @param arId
     */
    public void setArId(Integer arId) {
        this.arId = arId;
    }

    /**
     * 获取arNo
     *
     * @return arNo
     */
    public String getArNo() {
        return this.arNo;
    }

    /**
     * 设置arNo
     *
     * @param arNo
     */
    @Size(max = 10,min = 100)
    @Message(value = "test")
    public void setArNo(String arNo) {
        this.arNo = arNo;
    }

    /**
     * 获取name
     *
     * @return name
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置name
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取status
     *
     * @return status
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * 设置status
     *
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取infoTermYear
     *
     * @return infoTermYear
     */
    public Integer getInfoTermYear() {
        return this.infoTermYear;
    }

    /**
     * 设置infoTermYear
     *
     * @param infoTermYear
     */
    public void setInfoTermYear(Integer infoTermYear) {
        this.infoTermYear = infoTermYear;
    }

    /**
     * 获取infoTermNo
     *
     * @return infoTermNo
     */
    @NotNull(message="归属公司不能为空")
    public Integer getInfoTermNo() {
        return this.infoTermNo;
    }

    /**
     * 设置infoTermNo
     *
     * @param infoTermNo
     */
    public void setInfoTermNo(Integer infoTermNo) {
        this.infoTermNo = infoTermNo;
    }

    /* This code was generated by TableGo tools, mark 2 end. */
}
